import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	//首页
	{
		path: '/',
		name: 'home',
		component: () => import('../views/home')
	},
	{
		path: '/test',
		name: 'test',
		component: () => import('../views/test')
	},
	{
		path: '/map',
		name: 'map',
		component: () => import('../views/map')
	},
	
]

const router = new VueRouter({
	// mode: 'history',
	mode: 'hash',
	base: process.env.BASE_URL,
	routes
})

export default router
